Socket
Socket
Sign inDemoInstall

firefox-launch

Package Overview
Dependencies
22
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    firefox-launch

Light cross-platform launcher for Mozilla Firefox


Version published
Weekly downloads
793
increased by8.33%
Maintainers
1
Install size
270 kB
Created
Weekly downloads
 

Readme

Source

firefox-launch

Light cross-platform launcher for Firefox.

Usage

NPM

process = spawn(url, [options])

Spawns a new Firefox instance in a separate process using child_process.spawn.

Options include:

  • pref: preference file contents to use. Set to false to not create a file.
  • args: additional command-line arguments to pass to Firefox. See here for more information.
  • firefoxBinary: path to a custom Firefox binary.
  • dir: user configuration directory to use. By default, one will be created and then removed when the process is killed.
  • env: environment variables to use. Defaults to process.env.
  • nuke: remove opts.dir when the process exits.

Unless overridden with opts.config, the following preferences will be used:

user_pref("browser.shell.checkDefaultBrowser", false);
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref("dom.allow_scripts_to_close_windows", true);
user_pref("dom.disable_open_during_load", false);
user_pref("dom.max_script_run_time", 0);

License

MIT. See LICENSE.md for details.

Keywords

FAQs

Last updated on 19 Aug 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc